home *** CD-ROM | disk | FTP | other *** search
- Path: magnus.acs.ohio-state.edu!csn!carbon!ouray!exli
- From: exli@ouray.cudenver.edu (ELLIE XIAO-YU LI)
- Newsgroups: comp.lang.c
- Subject: HELP NEEDED: What the hell is wrong with my program?
- Date: 11 Jan 1996 03:49:45 GMT
- Organization: University of Colorado at Denver
- Message-ID: <4d21cp$gh@carbon.cudenver.edu>
- NNTP-Posting-Host: ouray.cudenver.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- sorry guys. in my previous post, the line:
-
- ptr->name=(char *)malloc(strlen(str1));
-
- should read like this:
-
- ptr->name=(char *)malloc(strlen(str1)+1);
-
- and so forth.
-
- thanx for reminding me, peter.
-
-
-
- Mitch
- exli@ouray.cudenver.edu
-